<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../struts_taglib.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>  
  <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  <title>财务管理/记账本</title>
  <%@ include file="../link_script.jsp" %>
  <script src="js/pmis/pmis-account.js" language="javascript" type="text/javascript"></script>
</head>
<body>
<html:form styleId="list" action="/account.do">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <%@ include file="account_button_list.jsp" %>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="8" background="images/tab_12.gif">&nbsp;</td>
        <td><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#b5d6e6">
          <tr>
            <td width="100%" class="STYLE11">&nbsp;<b>记账</b>&nbsp;&nbsp;<a href="account.do?method=addAccount&subCode=002">收入</a>&nbsp;| 
              &nbsp;<a href="account.do?method=addAccount&subCode=003">支出</a>&nbsp;| 
              &nbsp;<a href="account.do?method=addAccount&subCode=004">资产</a>&nbsp;| 
              &nbsp;<a href="account.do?method=addAccount&subCode=005">负债</a>&nbsp;&nbsp;&nbsp;&nbsp;<b>收入/支出</b>
              &nbsp;上月：${lastIncrease }￥/-${lastReduction }￥&nbsp;| 
              &nbsp;本月：${currentIncrease }￥/-${currentReduction }￥</td>
          </tr> 
        </table></td>
        <td width="8" background="images/tab_15.gif">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="8" background="images/tab_12.gif">&nbsp;</td>
        <td width="178" valign="top">
		  <table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0px" bordercolor="#b5d6e6">
			<tr><td><%@ include file="account_tree.jsp"%></td></tr></table></td>
        <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#b5d6e6" onMouseOver="javascript:changeto();" onmouseout="javascript:changeback();">
          <tr>
            <td width="4%" class="tdClass">序号</td>
            <td width="8%" class="tdClass">凭证编号</td>
            <td width="9%" class="tdClass">记账日期</td>
            <td width="24%" class="tdClass">科目</td>
            <td width="9%" class="tdClass">借</td>
            <td width="9%" class="tdClass">贷</td>
            <td width="10%" class="tdClass">期末余额</td>
            <td width="25%" class="tdClass">凭证摘要</td>
            <td width="*" class="tdClass"></td>          
          </tr>
          <logic:notEmpty name="accountList">
          <% int i = 0; %>
            <logic:iterate id="var" name="accountList">
            <% i++; %>
              <tr>
                <td class="STYLE12"><%=i %></td>
                <td class="STYLE12"><bean:write name="var" property="accountCode" /></td>
                <td class="STYLE12"><bean:write name="var" property="accountDate" /></td>
                <td class="STYLE11">&nbsp;<font style="font-family: 黑体, 宋体(GB);">${var.transferAccount }</font></td>
                <td class="STYLE13"><bean:write name="var" property="reduction" />&nbsp;</td>
                <td class="STYLE13"><bean:write name="var" property="increase" />&nbsp;</td>
                <td class="STYLE13"><bean:write name="var" property="balance" />￥&nbsp;</td>       
                <td class="STYLE11">&nbsp;
                <script type="text/javascript">
                  $("ABBR").unbind("click") // 删除所有p元素上的单击事件
                  $("ABBR").bind("click", function() {
	                alert($(this).text());
                  }); // 为每个p元素添加单击事件
                </script><ABBR><bean:write name="var" property="accountDesc" /></ABBR></td>
                <td class="STYLE11">&nbsp;</td>
              </tr>
            </logic:iterate>
          </logic:notEmpty>
        </table></td>
        <td width="8" background="images/tab_15.gif">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <c:if test="${method=='listAccountBySubjectID'}">
    <%@ include file="account_page.jsp"%>
  </c:if>
  <c:if test="${method!='listAccountBySubjectID'}">
    <%@ include file="../page.jsp"%>
  </c:if>
</table>
</html:form>
</body>
</html>

